package com.jeesite.modules.dataScreen.service;

import com.jeesite.modules.dataScreen.enums.DataTypeEnum;
import com.jeesite.modules.dataScreen.web.vo.executelaw.ExecuteLawVO;
import com.jeesite.modules.dataScreen.web.vo.transportcrackdown.TransportCrackdownP1VO;
import com.jeesite.modules.dataScreen.web.vo.transportcrackdown.TransportCrackdownP2VO;
import com.jeesite.modules.dataScreen.web.vo.transportcrackdown.TransportCrackdownP3VO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author machenzhi
 * @date 2024/09/09 09:49
 */
@Service
public class TransportCrackdownService {

    @Autowired
    private IndustryExecutor industryExecutor;



    public TransportCrackdownP1VO getP1RealTimeData() {
        TransportCrackdownP1VO transportCrackdownP1VO = new TransportCrackdownP1VO();
        industryExecutor.execute(transportCrackdownP1VO, DataTypeEnum.REAL_TIME.getCode());
        return transportCrackdownP1VO;
    }

    public TransportCrackdownP2VO getP2RealTimeData() {
        TransportCrackdownP2VO transportCrackdownP2VO = new TransportCrackdownP2VO();
        industryExecutor.execute(transportCrackdownP2VO, DataTypeEnum.REAL_TIME.getCode());
        return transportCrackdownP2VO;
    }

    public TransportCrackdownP3VO getP3RealTimeData() {
        TransportCrackdownP3VO transportCrackdownP3VO = new TransportCrackdownP3VO();
        industryExecutor.execute(transportCrackdownP3VO, DataTypeEnum.REAL_TIME.getCode());
        return transportCrackdownP3VO;
    }
}
